<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
// sql 打印
 DB::listen(function($sql, $bindings, $time) {
                // dump($sql);
            });
Route::get('/', function () {

    return view('welcome');
});
// 后台登录 控制器  
Route::get('/admin','admin\LoginController@index');
// 验证
Route::post('/admin/login','admin\LoginController@login');

// 商家 
Route::controller('/admin/goods','admin\GoodsController');
// 隐式控制器  超级管理员
Route::controller('/admin/user','admin\UserController');
// 后台登录后首界面
Route::controller('/admin/admin','admin\AdminController');

// 隐式控制器 分类
Route::controller('/admin/cate','admin\CateController');
// 前台菜单分类
// Route::get('/home','home\HomeController@index');
// 前台用户管理
Route::controller('admin/users','admin\UsersController');

// 前台 注册 
Route::controller('/home/zhuce','home\ZhuceController');

// 前台登录 
Route::controller('/home/login','home\LoginController');
// 验证码的路由
Route::get('/code','CodeController@index');
//前台用户个人信息
Route::controller('/home/user','home\UserController');
// Route::controller('/home/users','home\UsersController');
// 单一物品
Route::controller('/home/wupin','home\WupinController');
// 前台评论
Route::controller('/home/pinglun','home\PinglunController');
//
































































































































































//前台首页
Route::get('/home','home\IndexController@index');
//后台友情链接管理
Route::controller('/admin/flink','admin\FlinkController');
//后台网站配置管理
Route::controller('/admin/webconfig','admin\WebconfigController');
//前台产品
Route::get('/home/chanpin','home\ChanpinController@index');
//前台商城
Route::get('/home/shop','home\ShopController@index');

//前台公告
Route::controller('/home/notice','home\NoticeController');
//前台服务
Route::get('/home/service','home\ServiceController@index');
//后台用户评论管理
Route::controller('/admin/pinglun','admin\PinglunController');

//前台购物车
Route::controller('/home/shopcar','home\ShopcarController');
//前台订单处理
Route::controller('/home/writeorder','home\WriteorderController');
//前台选择支付方式
Route::controller('/home/shoppay','home\ShoppayController');
//前台支付
Route::controller('/home/zhifu','home\ZhifuController');


































































































































































































// 公告 隐式控制器 分类
Route::controller('/admin/notice','admin\NoticeController');




// 管理员商品 
Route::controller('/admin/good','admin\GoodController');


//后台轮播图
Route::controller('/admin/pic','admin\PicController');


//后台相册
Route::controller('/admin/photo','admin\PhotoController');

//后台订单管理
Route::controller('/admin/order','admin\OrderController');
















